﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kalkulator
{
    class Kamus
    {
        private double operand1, operand2;

        public double Operand1
        {
            get { return operand1; }
            set { this.operand1 = value; }
        }

        public double Operand2
        {
            get { return operand2; }
            set { this.operand2 = value; }
        }

        public double tambah(double a, double b)
        {
            return a + b;
        }
        public double kurang(double a, double b)
        {
            return a - b;
        }
        public double kali(double a, double b)
        {
            return a * b;
        }
        public double bagi(double a, double b)
        {
            return a / b;
        }

        public double pangkat(double a)
        {
            return Math.Pow(a, 2);
        }

        public double akar(double a)
        {
            return Math.Sqrt(a);
        }
    }
}
